<#ftl encoding="UTF-8" />
            <form id="form_data" class="form__data_content">
                <!-- 产品计划 -->
                <div id="panelTop" style="position:relative; height:50px; border-bottom: 1px solid #ddd; background-color:#fff;">
                    <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0px;">
                        <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
                        <button type="button" name="_ButNew" id="ButNew" class="act__button act__new" onclick="_InstancePageHeader.New();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                        <button type="button" name="_ButSave" id="ButSave" class="act__button act__save" onclick="_InstancePageHeader.Save();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                        <button type="button" name="_ButCheck" id="ButCheck" class="act__button" onclick="_InstancePageHeader.DoCheck();"><i class="fa-all fa-1x fa-eye" style="margin-right:3px;"></i>审核</button>
                        <button type="button" name="_ButUnCheck" id="ButUnCheck" class="act__button" onclick="_InstancePageHeader.Uncheck();"><i class="fa-all fa-1x fa-eraser" style="margin-right:3px;"></i>反审</button>
                        <button type="button" name="_ButPrint" id="ButPrint" class="act__button" onclick="_InstancePageHeader.DoPrintPreview();"><i class="fa-all fa-1x fa-print" style="margin-right:3px;"></i>打印预览</button>
                        <div id="ButOverSwitcher" class="switcher" style="position:relative; top:-4px; left:50px;">
                            <input class="switcher__input" type="checkbox" name="_OverFlag" id="OverFlag" onclick="_InstancePageHeader.SetOverFlag();">
                            <label class="switcher__label" for="OverFlag">
                                <span class="switcher__text">完成</span>
                            </label>
                        </div>
                    </div>
                    <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:18px; width:auto;">
                        <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
                    </div>
                    <div class="panel__toolbar" style="position:absolute; display:inline-block; top:12px; right:20px;">
                        <div class="panel__toolbar_item">
                            <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="前一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
                        </div>
                        <div class="panel__toolbar_item" disabled="disabled">
                            <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="后一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
                        </div>
                    </div>
                </div>
                <div class="data__table_wrapper">
                    <table class="data__table">
                        <colgroup>
                            <col style="width: 7%;" />
                            <col style="width: 17%;" />
                            <col style="width: 7%;" />
                            <col style="width: 17%;" />
                            <col style="width: 7%;" />
                            <col style="width: 17%;" />
                            <col style="width: 7%;" />
                            <col />
                        </colgroup>
                        <tbody>
                            <tr>
                                <td class="td__label">
                                    <label for="ContractNo">合同号<em>★</em></label>
                                </td>
                                <td>
                                    <input type="text" id="ContractNo" name="_ContractNo" tabindex="1" style="width:185px;" />
                                </td>
                                <td class="td__label">
                                    <label for="DateOfContract">日期<em>★</em></label>
                                </td>
                                <td>
                                    <div id="ChoiceDateOfContract" class="form_input_dropdown_wrapper" style="width:185px;">
                                        <input type="text" id="DateOfContract" name="_DateOfContract" class="select-dropdown" readonly="readonly" tabindex="2" />
                                        <span class="dropdown_button"><i class="fa-all fa-1-1 fa-calendar"></i></span>
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="TradeModeName">贸易形式<em>★</em></label>
                                </td>
                                <td>
                                    <input type="hidden" id="TradeModeId" name="_TradeModeId" value="" />
                                    <div id="ChoiceTradeModeName" class="form_input_dropdown_wrapper" onclick="_InstancePageHeader.DoChoiceTradeMode();" style="width:185px;">
                                        <input type="text" id="TradeModeName" name="_TradeModeName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="3" />
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="SerialNo">系列号</label>
                                </td>
                                <td>
                                    <input type="text" id="SerialNo" name="_SerialNo" tabindex="4" style="width:185px;" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td__label">
                                    <label for="SaledByName">国际贸易担当</label>
                                </td>
                                <td>
                                    <input type="hidden" id="SaledBy" name="_SaledBy" tabindex="5" />
                                    <div id="ChoiceSaledBy" class="form_input_dropdown_wrapper" onclick="_InstancePageHeader.DoChoiceSaledBy();" style="width:145px;">
                                        <input type="text" id="SaledByName" name="_SaledByName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="5" />
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="UpdatedByName">操作情况</label>
                                </td>
                                <td>
                                    <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="6" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/ style="width:90px;">
                                    <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="7" style="width:90px;" />
                                </td>
                                <td class="td__label">
                                    <label for="CheckedByName">审核情况</label>
                                </td>
                                <td>
                                    <input type="hidden" id="CheckedBy" name="_CheckedBy" />
                                    <input type="text" id="CheckedByName" name="_CheckedByName" readonly="readonly" tabindex="8" style="width:90px;" />
                                    <input type="text" id="CheckedDate" name="_CheckedDate" readonly="readonly" tabindex="9" style="width:90px;" />
                                </td>
                                <td colspan="2">
                                </td>
                            </tr>
                            <tr>
                                <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                    <label for="Description">备注</label>
                                </td>
                                <td colspan="7">
                                    <textarea class="area" id="Description" name="_Description" rows="4" tabindex="11" style="width:100%; height:70px; resize:none;"></textarea>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </form>
            <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
            <input id="HeaderId" type="hidden" value="<#if mpsId?exists>${mpsId}<#else>0</#if>" />
            <input id="QuotedFlag" type="hidden" value="" />
            <div style="position:absolute; top:13px; right:200px;">
                <span id="CheckedTip" class="huzo_status huzo_status__green">状态：已审核</span>
            </div>
     
            <!-- 明细部分 -->
            <div id="panelSlave" style="position:relative; top:0px;">
                <!-- 折叠标记 -->
                <div id="hPanelSplitter" title="隐藏主表"><i class="fa-all fa-angle-double-up"></i></div>
                <!-- 明细内容 -->
                <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%">
                    <li id="menu_01" class="tabInactive" style="margin-left:25px;">
                        <div>
                            <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">产品计划明细</abbr></span></span>
                        </div>
                    </li>
                </ul>
                <div id="tabPanelData" class="tab__wrapper" style="top:0px; height:auto;">
                    <div id="tabWrapper_01" class="tab__content" style="padding-top:5px; width:100%;">
                        <div id="panelSlaveButton" style="clear:both; position:relative; top:3px; padding-left:8px; z-index:+1;">
                            <button type="button" name="_ButNewLines" id="ButNewLines" class="act__button act__save" onclick="_InstancePageLines.NewLines();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                            <button type="button" name="_ButSaveLines" id="ButSaveLines" class="act__button act__save" onclick="_InstancePageLines.SaveLines();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存明细</button>
                            <button type="button" name="_ButSyncUpdateTrackItem" id="ButSyncUpdateTrackItem" class="act__button act__save" onclick="_InstancePageLines.SyncUpdateTrackItem();"><i class="fa-all fa-1x fa-bars" style="margin-right:3px;"></i>同步更新计划数据</button>
                        </div>
                        <div id="panelSlaveData_01" style="position:relative; top:10px; margin:0 8px;">
                            <table style="width:100%;">
                                <tr>
                                    <td style="overflow:hidden; width:728px;">
                                        <div id="divH11" style="overflow:hidden; border:none;">
                                            <table id="tabHeader11" class="layout display" style="width:100%;">
                                                <colgroup>
                                                    <col style="width: 27px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 230px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 235px;" />
                                                    <col style="width: 50px;" />
                                                </colgroup>
                                                <thead>
                                                    <tr>
                                                        <th>
                                                           <label class="btn" for="CheckAll" style="margin-left:3px;"><input id="CheckAll" type="checkbox" onclick="_InstancePageLines.DoCheckAll($(this),'_check_row');" /><i></i><span></span></label>
                                                        </th>
                                                        <th style="text-align: center;">删除</th>
                                                        <th>客户</th>
                                                        <th>款号</th>
                                                        <th class="edit__column">数量</th>
                                                        <th class="edit__column">颜色</th>
                                                        <th style="text-align:center;">区分</th>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </td>
                                    <td style="position:relative;">
                                        <div id="divH12" class="header__with__margin">
                                            <table id="tabHeader12" class="layout display" style="margin-left:-1px; width:100%;">
                                                <colgroup>
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 120px;" />
                                                    <col style="width: 120px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 400px;" />
                                                </colgroup>
                                                <thead>
                                                    <tr>
                                                        <th class="edit__column">交货期</th>
                                                        <th class="edit__column">色卡发放日期</th>
                                                        <th class="edit__column">小样确认日期</th>
                                                        <th class="edit__column">生产指示书</th>
                                                        <th class="edit__column">技术资料完成日期</th>
                                                        <th class="edit__column">技术资料发放日期</th>
                                                        <th class="edit__column">单耗完成日期</th>
                                                        <th class="edit__column">原料调达日期</th>
                                                        <th class="edit__column">组料完成日期</th>
                                                        <th class="edit__column">裁片印花日期</th>
                                                        <th class="edit__column">化检日期</th>
                                                        <th class="edit__column">加工费</th>
                                                        <th class="edit__column">备注</th>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align:top; width:728px;">
                                        <div id="divD11" class="grid__data_wrapper" style="border:none; border-bottom:1px solid #c6c3bd; overflow:hidden;">
                                            <table id="tabData11" class="responsive__table" style="margin-top:-1px;">
                                                <colgroup>
                                                    <col style="width: 27px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 230px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 235px;" />
                                                    <col style="width: 50px;" />
                                                </colgroup>
                                                <tbody></tbody>
                                            </table>
                                        </div>
                                    </td>
                                    <td class="with__border__lines" style="vertical-align:top; width:100%;">
                                        <div id="divD12" class="grid__data_wrapper" style="overflow:scroll;" onscroll="_InstancePageLines.ScrollTo();">
                                            <table id="tabData12" class="responsive__table" style="border-bottom:1px solid #c6c3bd; margin-top:-1px; margin-left:-1px; width:100%;">
                                                <colgroup>
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 120px;" />
                                                    <col style="width: 120px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 382px;" />
                                                </colgroup>
                                                <tbody></tbody>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
